import 'xmm_error_code.dart';

enum XmmErrorType {
  unknown(XmmErrCode.unknown), //未知错误
  networkTimeOut(XmmErrCode.networkTimeOut), //超时
  badCertificate(XmmErrCode.badCertificate), //证书验证失败
  badResponse(XmmErrCode.badResponse), //was caused by an incorrect status code as configured by
  serverNoJson(XmmErrCode.serverNoJson), //服务器返回数据格式错误
  server404(XmmErrCode.server404), //服务器400
  server500(XmmErrCode.server500), //服务器500
  cancel(XmmErrCode.cancel); //取消请求

  final int code;

  const XmmErrorType(this.code);
}
